Avoid warnings about 'image-scaling-factor' in builds --without-x
authorEli Zaretskii <eliz@gnu.org>
Thu, 6 Mar 2025 13:49:27 +0000 (15:49 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 6 Mar 2025 13:49:27 +0000 (15:49 +0200)
* lisp/cus-start.el (standard): Exclude 'image-*' options if Emacs
was built without GUI support.  (Bug#76716)

lisp/cus-start.el

index 0f7d7c3c02018f1c061d34515deb4b878f0e10b2..91cc6e2215215f469cd59df4a76c787c33bf4fdb 100644 (file)
@@ -908,6 +908,8 @@ since it could result in memory overflow and make Emacs crash."
                       (fboundp 'x-create-frame))
                      ((string-match "tab-bar-" (symbol-name symbol))
                       (fboundp 'x-create-frame))
+                      ((string-match "image-" (symbol-name symbol))
+                       (fboundp 'x-create-frame))
                      ((equal "vertical-centering-font-regexp"
                              (symbol-name symbol))
                       ;; Any function from fontset.c will do.